use Plack::Handler::CGI;
my $app = sub {
    my $env = shift;
        return [
            200, 
            [ 'Content-Type' => 'text/plain' ],
            [ "Hello stranger from\n $env->{REMOTE_ADDR}!"],
        ]
};

Plack::Handler::CGI->new->run( $app );
